﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Model.Entities.AssetManagement
{
    /// <summary>
    /// 资产状态实体
    /// </summary>
    [Table("AssetState")]
    public class AssetStateEntity
    {
        /// <summary>
        /// 资产状态编号
        /// </summary>
        [Key]
        [MaxLength(1)]
        public int AssetStateId { get; set; }

        /// <summary>
        /// 资产状态名
        /// </summary>
        [MaxLength(20), Required]
        public string AssetStateName { get; set; }

        /// <summary>
        /// 资产状态备注
        /// </summary>
        public string AssetStateRemarks { get; set; }

        public List<AssetInfoEntity> AssetInfos { get; set; }
    }
}
